<?php defined('ROOT_DIR') or die('Access denied!');?>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="content-type" content="text/html" />
	<meta name="author" content="暮雨秋晨" />
	<meta charset="UTF-8" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />
    <meta name="description" content="<?php echo $config['desc'];?>" />
    <meta name="keywords" content="<?php echo $config['keywd'];?>" />
	<title><?php echo $title;?></title>
    <link rel="stylesheet" href="/Application/static/css/main.css" />
    <script src="/Application/static/js/common.js"></script>
</head>
<body>
<header>
<ul>
<li><a href="<?php echo $this->urlCreate('admin','index');?>" style="z-index: 50;">管理主页</a></li>
<li><a href="#" style="z-index: 49;">版块维护</a></li>
</ul>
</header>

<div id="main">
<div id="subtitle">版块维护</div>
<div id="box">
<form action="" method="post">
<label for="parent">父级论坛</label>
<select name="parent" style="display: block;margin: 1em;">
<?php foreach($forums as $forum):?>
<?php if($section['fid']==$forum['id']):?>
<option value="<?php echo $forum['id'];?>" selected="selected"><?php echo $forum['name'];?></option>
<?php else:?>
<option value="<?php echo $forum['id'];?>"><?php echo $forum['name'];?></option>
<?php endif;?>
<?php endforeach;?>
</select>
<label for="name">版块名称</label>
<input type="text" id="name" name="name" style="margin: 1em;display: block;" value="<?php echo $section['name'];?>" />
<span style="display: block;margin: 3px 1em 3px;color: red;"><?php echo $tip;?></span>
<span style="display: block;margin: 1em;font-size: 0.6em;color: red;">不修改就提交会报错的哦</span>
<input type="submit" name="submit" value="提交" style="margin: 1em;display: block;width: 64px;height: 24px;margin-left: 3em;" />
</form>
</div>
</div>
<footer>
&copy;<a href="http://www.doubear.com">Doubear</a> Driven by <a href="http://www.domvc.com">DoMVC</a> framework
</footer>
</body>
</html>